﻿using UnityEngine;

public class CreateOctree : MonoBehaviour
{
    public GameObject[] worldObjects;
    public int nodeMinSize = 1;
    public Octree _ot;

    public Graph wayPoints;    // 路径点
    // Start is called before the first frame update
    void Start()
    {
        wayPoints = new Graph();
        _ot = new Octree(worldObjects,nodeMinSize,wayPoints);
    }
    

    void OnDrawGizmos()
    {
        // if (Application.isPlaying)
        // {
        //     _ot.RootNode.Draw();
        //     _ot.navigationGraph.Draw(); // 绘制路径
        //     
        // }
    }
}
